define(function(require, exports, module) {

	return function fangfa(jQuery) {
		var Navigator = require("tools/jquery.navigator/src/js/UI.Navigator");
		var jQuery1 = Navigator(jQuery);
		jQuery1 = require("tools/jquery.tipInside/src/js/UI.TipInside")
		(jQuery1);

		jQuery1(function() {
			var msg1 = getLanMsg("ec22180-000191");
			var msg2 = getLanMsg("ec22180-000192");
			var msg3 = getLanMsg("ec22180-000193");
			var msg7 = getLanMsg("ec22180-000197");
			var msg8 = getLanMsg("ec22180-000198");
			var msg9 = getLanMsg("ec22180-000199");
			var msg10 = getLanMsg("ec22180-000200");
			var unSigned = [ {
				'itemId' : 0,
				'itemName' : msg9,
				'needShow': true,
				'itemUrl' : "/ebvp"
			}, {
				'itemId' : 1,
				'itemName' : msg7,
				'needShow': bModuleEBP,
				'itemUrl' : "/ebvp/index/indexlog/zbgggeng"
			}, {
				'itemId' : 2,
				'itemName' : msg8,
				'needShow': bModuleEBP,
				'itemUrl' : "/ebvp/index/indexlog/zhongbgggeng"
			}, {
				'itemId' : 3,
				'itemName' : msg10,
				'needShow': true,
				'itemUrl' : "/ebvp/index/indexlog/zhongbgggenggywm"
					,
	                    'callback': function() {
				var ie7 = $.browser.msie && $.browser.version == 7;
					if(($.browser.msie && $.browser.version == 7) ||($.browser.msie && $.browser.version == 8.0) || ($.browser.msie && $.browser.version == 7.0) || ($.browser.msie && $.browser.version == 8)|| ($.browser.msie && $.browser.version == 9)||($.browser.msie && $.browser.version == 9.0)){
		   					var scrWidth=screen.availWidth;
		   					var scrHeight=screen.availHeight;
							window.open("/ebvp/index/indexlog/zhongbgggenggywm","newwindow","resizable=yes,toolbar=yes, menubar=yes,   scrollbars=yes,location=yes, status=yes,top=0,left=0,width="+scrWidth+",height="+scrHeight);
						} else {
							window.open("/ebvp/index/indexlog/zhongbgggenggywm");
						}		
	                		return false;
	                	}
			} ];
			jQuery1("#unsignedNavigatorBar").UINavigator( {
				'items' : unSigned
			});

			jQuery1(".signon_tab a").click(function() {
				this.blur();
				jQuery1(this).removeClass().addClass("actived");
				if (jQuery1(this).next('a').length > 0)
					jQuery1(this).next('a').addClass("inactive bdseplft");
				else
					jQuery1(this).prev('a').addClass("inactive bdseprit");
				var id = $(this).attr("href").split("#")[1];
				jQuery1(".signon_form").addClass("hidden");
				jQuery1("#" + id).removeClass("hidden");

				return false;
			});

			jQuery1(".signon_form input").UITipInside();

			jQuery1("#signonSubmit").click(function() {
				if ($("#supusername:first").val() == "") {
			        jQuery("#errorM").html(msg1);	        
			        $("#supusername:first").focus();
			        return false;
			    }
			    if ($("#suppwd:first").val() == "") {
			        $("#suppwd:first").focus();
			        jQuery("#errorM").html(msg2);	
			        return false;
			    }
			    if ($("#usercode:first").val() == "") {
			        $("#usercode:first").focus();
			        jQuery("#errorM").html(msg3);	
			        return false;
			    }
				$(this).parents("form").submit();
				return false;
			});
			jQuery1("#signonSubmit2").click(function() {
				jQuery1(this).parents("form").submit();
				return false;
			});
		});
		return jQuery1.noConflict(true);
	}
});